package com.suyang.syt.model.dto;

import com.suyang.syt.model.User;

@SuppressWarnings("serial")
public class UserDTO extends User {
	/** 用户拥有角色ID（逗号隔开） */
	private String roleIds;
	/** 用户拥有角色名称（逗号隔开） */
	private String roleNames;
	/** 用户拥有组ID（逗号隔开） */
	private String groupIds;
	/** 用户拥有组名称（逗号隔开） */
	private String groupNames;

	public UserDTO() {

	}

	public UserDTO(User user) {
		this.setCreateName(user.getCreateName());
		this.setCreateTime(user.getCreateTime());
		this.setEmail(user.getEmail());
		this.setIcon(user.getIcon());
		this.setId(user.getId());
		this.setJianpin(user.getJianpin());
		this.setQuanpin(user.getQuanpin());
		this.setModifyName(user.getModifyName());
		this.setModifyTime(user.getModifyTime());
		this.setName(user.getName());
		this.setNickname(user.getNickname());
		this.setOrderIndex(user.getOrderIndex());
		this.setStatus(user.getStatus());
		this.setUsername(user.getUsername());
		this.setPassword(user.getPassword());
		this.setPhone(user.getPhone());
	}

	public String getRoleIds() {
		return roleIds;
	}

	public void setRoleIds(String roleIds) {
		this.roleIds = roleIds;
	}

	public String getRoleNames() {
		return roleNames;
	}

	public void setRoleNames(String roleNames) {
		this.roleNames = roleNames;
	}

	public String getGroupIds() {
		return groupIds;
	}

	public void setGroupIds(String groupIds) {
		this.groupIds = groupIds;
	}

	public String getGroupNames() {
		return groupNames;
	}

	public void setGroupNames(String groupNames) {
		this.groupNames = groupNames;
	}

}
